<?php
/**
 * Yii view _available
 *
 * @author nguyenmanhluu
 * @since Aug 19, 2013 - 3:47:47 PM
 */
?>
<div class="row-fluid">
    <div class="span12 box">
        <div class="box-header">
            <h2>Available widget</h2>        
        </div>
        <div class="box-content">
            <div class="row-fluid">
                <?php $i = 0; ?>
                <?php foreach ($widget_template as $widget): ?>
                    <?php $i++; ?>
                    <div class="span6 noMargin">
                        <ul class="widget-list widgets-connect sortable1">
                            <li>
                                <?php
                                $this->renderPartial('_widget', array(
                                    'widget' => $widget
                                ));
                                ?>
                            </li>
                        </ul>
                    </div>
                    <?php if ($i % 2 == 0): ?>
                    </div>
                    <div class="row-fluid">
                    <?php endif; ?>
                <?php endforeach; ?>
            </div>
        </div>
    </div>
</div>